package com.ahm.mapper;



import com.ahm.base.BaseMapper;
import com.ahm.bean.Role;
import org.apache.ibatis.annotations.MapKey;

import java.util.List;
import java.util.Map;

public interface RoleMapper extends BaseMapper<Role,Integer> {


    //用户回显
    @MapKey("")
    List<Map<String, Object>> selectRoles(Integer userId);

    int selectByRoleName(String roleName);

    int insertRole(Role role);

    Role selectRoleByRoleName(String roleName);
}